<?php

use yii\helpers\Html;


/* @var $this yii\web\View */
/* @var $model app\models\Park */

$this->title = '新增园区';
if($model->company_id>0){
    $this->params['breadcrumbs'][] = ['label' =>$model->company->name, 'url' => ['company/view','id'=>$model->company->id]];
}else{
    ($this->params['breadcrumbs'][] = ['label' => '园区列表', 'url' => ['index']]);
}
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="park-create">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= $this->render('_form', [
        'model' => $model,
    ]) ?>

</div>
